ByteData

interface ByteData : UploadData

An upload data as a sequence of bytes.

Functions

Link copied to clipboard
open fun bytes(): Array<Byte>
Returns an array containing the upload data bytes of the associated URL request.
Link copied to clipboard
Returns the content type of this upload data as specified in the Content-Type header.
Link copied to clipboard
open fun of(data: Array<Byte>): ByteData
open fun of(data: String): ByteData
Creates an instance of ByteData with the given upload data bytes.
open fun of(data: Array<Byte>, contentType: ContentType): ByteData
open fun of(data: String, contentType: ContentType): ByteData
Creates an instance of ByteData with the given upload data bytes and content type.